﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace GalaxyPresident
{
    public class PlayingScreen : GameScreen
    {
        private List<Layer> _layers = new List<Layer>();
        private int currentLayer = 0;

        public PlayingScreen(Game1 game) : base(game)
        {
            _layers.Add(new PlanetLayer(this));
            _layers.Add(new SolarLayer(this));
            _layers.Add(new GalaxyLayer(this));
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
            _layers[currentLayer].Draw(gameTime, spriteBatch);
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            _layers[currentLayer].Update(gameTime);
        }
    }
}
